
<?php

	require_once("../connectMysql/connetMysql.class.php");
	
	$userPhone=$_GET['userPhone']; 
	$db=new connetMysql;
	$con=$db->getConnect();
	$chk_sql="SELECT userTypea,userSexa,homeArea,liveArea,userAgea,UserName,UserBirth,UserTypeId,UserDescri,UserSex,RegisterTime,HomeProv,HomeCity,LivProv,LivCity,Skill,OpenContact,WorkExper,EduExper FROM user WHERE UserPhone=".$userPhone;	
	$result=$con->query($chk_sql);
	$row = mysqli_fetch_assoc($result);

		$arr = array( 
		'UserName' => $row['UserName'], 
		'userAge' => $row['userAgea'], 
		'UserType' => $row['userTypea'],
		'UserDescri' => $row['UserDescri'],
		'UserSex' => $row['userSexa'], 
		'RegisterTime' => $row['RegisterTime'], 
		'HomeArea' => $row['homeArea'],  
		'LiveArea' => $row['liveArea'],
		'Skill' => $row['Skill'], 
		'OpenContact' => $row['OpenContact'], 
		'WorkExper' => $row['WorkExper'], 
		'EduExper' => $row['EduExper']
 		 ); 

	$con->close(); 
	echo json_encode($arr);
?>